import request from '@/utils/request'

// 查询供方转供应商列表
export function listZcSupplierConversion(query) {
  return request({
    url: '/sales/ZcSupplierConversion/list',
    method: 'get',
    params: query
  })
}

// 查询供方转供应商详细
export function getZcSupplierConversion(id) {
  return request({
    url: '/sales/ZcSupplierConversion/' + id,
    method: 'get'
  })
}

// 新增供方转供应商
export function addZcSupplierConversion(data) {
  return request({
    url: '/sales/ZcSupplierConversion',
    method: 'post',
    data: data
  })
}

// 修改供方转供应商
export function updateZcSupplierConversion(data) {
  return request({
    url: '/sales/ZcSupplierConversion',
    method: 'put',
    data: data
  })
}

// 删除供方转供应商
export function delZcSupplierConversion(id) {
  return request({
    url: '/sales/ZcSupplierConversion/' + id,
    method: 'delete'
  })
}
